<template>
    <el-container>
        <el-header>组件</el-header>
        <!-- btn -->
        <el-container>
            <el-aside width='100px'>btn</el-aside>
            <el-main> 
                <el-button disabled>默认 静止</el-button>
                <el-button circle>圆</el-button>
                <el-button type="text">文字按钮</el-button>
                <el-button plain round>透明 圆角 </el-button>
                <el-button type="success" icon="el-icon-search"  >成功 图标</el-button>
                <el-button type="info" :loading="true">信息 加载中</el-button>
                <el-button type="primary" size="medium" >主要 中</el-button>
                <el-button type="warning" size="small">警告 小</el-button>
                <el-button type="danger" size="mini">危险 超小</el-button> 
            </el-main>
        </el-container>
        <el-container>
            <el-aside width='100px'>form</el-aside>
            <el-main>
                <el-row>
                    <el-radio v-model='radio' label='1'> 单选1 </el-radio>
                    <el-radio v-model='radio' label="2" disabled> 单选2 禁用</el-radio>
                    <el-radio v-model='radio' label="3"> 单选3</el-radio>
             
                    <el-radio-group v-model="radio2" >
                        <el-radio :label="3">备选项</el-radio>
                        <el-radio :label="6">备选项</el-radio>
                        <el-radio :label="9">备选项</el-radio>
                    </el-radio-group>
                    <el-radio-group v-model="radio3" size="medium">
                        <el-radio-button label="2">备选项</el-radio-button>
                        <el-radio-button label="4">备选项</el-radio-button>
                        <el-radio-button label="6">备选项</el-radio-button>
                    </el-radio-group>
               </el-row>
                <el-row> 
                    <div>
                        <el-checkbox v-model="checked1"  >备选项1</el-checkbox>
                        <el-checkbox v-model="checked2" disabled>备选项</el-checkbox>           
                    </div> 
                    <div>
                        <el-checkbox-group v-model="checkList">
                            <el-checkbox label="复选框 A"></el-checkbox>
                            <el-checkbox label="复选框 B"></el-checkbox> 
                            <el-checkbox label="禁用" disabled></el-checkbox>
                            <el-checkbox label="选中且禁用" disabled></el-checkbox>
                        </el-checkbox-group>
                    </div> 
               </el-row>
               <el-row>
                   <el-input  
                        v-model="input2"
                        size="mini" 
                        prefix-icon="el-icon-search"
                        suffix-icon="el-icon-date"
                        placeholder="请输入内容mini" 
                        :disabled="true"
                        clearable
                    > </el-input>
                     <el-input 
                        type="textarea" 
                        :rows="2"
                        autosize
                        placeholder="请输入内容" 
                        v-model="textarea2"
                    > </el-input>
                    <el-input placeholder="请输入内容" v-model="input5" class="input-with-select">
                        <el-select v-model="select" slot="prepend" placeholder="请选择">
                        <el-option label="餐厅名" value="1"></el-option>
                        <el-option label="订单号" value="2"></el-option>
                        <el-option label="用户电话" value="3"></el-option>
                        </el-select>
                        <el-button slot="append" icon="el-icon-search"></el-button>
                    </el-input> 
               </el-row>
               <el-row>
                     <el-input-number 
                        v-model="num1" 
                        @change="inpnum" 
                        :step="2"
                        :min="1" 
                        :max="10" 
                        :disabled="true"
                        label="描述文字"
                        ></el-input-number>
                          <el-input-number 
                        v-model="num2" 
                        @change="inpnum" 
                        :step="2"
                        :min="1" 
                        :max="10"  
                        controls-position="right" 
                        label="描述文字"
                        ></el-input-number>
               </el-row>
               <el-row>
                   and so on
               </el-row>

            </el-main>
        </el-container>
        
        <el-footer>
            底部
        </el-footer>
    </el-container>
</template>
<script>
    export default{
        data(){
            return{
                radio:"1",//选中
                radio2:9,//选中
                radio3:"4",
                checked1: false,
                checked2: true,
                checkList: ['选中且禁用','复选框 A'],
                input2:"",
                input5: '',
                 select: '',
                textarea2:"",
                 num1: 1,
                 num2: 1,
            }
        },
        methods:{
            inpnum(value){
                console.log(value);
            }
        }
    }
</script>
<style>
    .el-header, .el-footer {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 60px;
    }
    
    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        line-height: 200px;
    }
  
    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        line-height: 60px;
    }
  
    body > .el-container {
        margin-bottom: 40px;
    }
  
    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 260px;
    }
  
   .el-container:nth-child(7) .el-aside {
      line-height: 320px;
    }
    .el-header + .el-container{
       border-bottom: 1px solid #aaa
    }
    .el-main .el-row{
          border-bottom: 1px solid #ccc
    }
</style>